
INC=/home/yfcao/include
LINKPATH=../libBioModel
VPATH = .:../libBioModel:/home/yfcao/include

SRCS = *.cpp
OBJ = gillespie.o $(LINKPATH)/InitialConds.o $(LINKPATH)/State.o $(LINKPATH)/Stoichiometry.o $(LINKPATH)/Network.o anyoption.o
OBJST = singletrajectory.o $(LINKPATH)/InitialConds.o $(LINKPATH)/State.o $(LINKPATH)/Stoichiometry.o $(LINKPATH)/Network.o anyoption.o
CPP_DEPS = gillespie.d singletrajectory.d $(LINKPATH)/InitialConds.d $(LINKPATH)/State.d $(LINKPATH)/Stoichiometry.d $(LINKPATH)/Network.d anyoption.d
LIBS := -lm -lxerces-c -lstdc++ -lsbml 
LD := /home/yfcao/lib


$(OBJ) : $(SRCS)
$(OBJST) : $(SRCS)
%.o : %.cpp
	@echo 'Building file: $<'
	@echo 'Invoking: GCC C++ Compiler'
	g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<" -I$(INC)
	@echo 'Finished building: $<'
	@echo


all : gillespie install

gillespie: $(OBJ)
	g++ -o"gillespie" $(OBJ) -L$(LD) $(LIBS)

install:
	cp gillespie ../bin

st: $(OBJST)
	g++ -o"singletrajectory" $(OBJST) -L$(LD) $(LIBS)

test : gillespie

clean:
	rm *.o *.d
